using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using Castle.ActiveRecord;

namespace EYDIngenieria.ERP.ObjetosDeNegocio.Dominio
{
    [ActiveRecord]
    public class AsientoContable:ActiveRecordBase<AsientoContable>
    {
        private int id;
        private string detalle;
        private DateTime fecha;
        private IList desglose = new ArrayList();

        [HasAndBelongsToMany(typeof (Desglose),
            Table = "DesgloseAsientoContable", ColumnKey = "IdAsientoContable", ColumnRef = "IdDesglose")]
        public IList Desglose
        {
            get { return desglose; }
            set { desglose = value; }
        }


        [Property]
        public DateTime Fecha
        {
            get { return fecha; }
            set { fecha = value; }
        }



        [Property]
        public String Detalle
        {
            get { return detalle; }
            set { detalle = value; }
        }



        [PrimaryKey(PrimaryKeyType.Native)]
        public int Id
        {
            get { return id; }
            set { id = value; }
        }


    }
}
